package com.zhouxiaoge.dao;

import java.util.List;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-04-23 15:25
 */

public interface UserRunAsDao {
    void grantRunAs(Long fromUserId, Long toUserId);

    void revokeRunAs(Long fromUserId, Long toUserId);

    boolean exists(Long fromUserId, Long toUserId);

    List<Long> findFromUserIds(Long toUserId);

    List<Long> findToUserIds(Long fromUserId);
}
